package com.ams.common.web.exception;

import com.ams.common.base.result.IResultCode;

/**
 * @Author yuanss
 * @Date 2024/1/30 14:10
 * @Description: 业务异常
 * @Version 1.0
 */
public class BizException extends RuntimeException {
    public IResultCode resultCode;

    public BizException(IResultCode errorCode) {
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(Throwable cause) {
        super(cause);
    }
}
